freeing of non babl allocated memory is fatal.
authorØyvind Kolås <ok@src.gnome.org>
Tue, 30 Aug 2005 12:30:41 +0000 (12:30 +0000)
committerØyvind Kolås <ok@src.gnome.org>
Tue, 30 Aug 2005 12:30:41 +0000 (12:30 +0000)
ChangeLog
babl/babl-memory.c

index c9250cbea94aa9553bbb816069fc8de64802a36e..88365498b5d3e308f673c853edbff0618ee43048 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-08-30  Øyvind Kolås  <pippin@gimp.org>
+
+       * babl/babl-memory.c: (babl_free): freeing of non babl allocated
+       memory is fatal.
+
 2005-08-29  Øyvind Kolås  <pippin@gimp.org>
 
        * tests/types.c: added test that tests the symmetry of reference
index b4fa769fae955d7e26e5da394cd02bc5e72938b6..811414ec27cb7b7d3fc761f0f815a5a159f082c8 100644 (file)
@@ -138,7 +138,8 @@ babl_free (void *ptr)
 {
   if (!ptr)
     return;
-  assert(IS_BAI(ptr));
+  if(!IS_BAI(ptr))
+    babl_fatal ("memory not allocated by babl allocator");
   functions_sanity ();
   free_f (BAI(ptr));
   frees++;